package com.robotserver.orders.param;

/**
 * @Auther: jianghan
 * @Date: 2019/11/28 16:48
 * @Description:
 */
public class PddOldOrderSyncParam {
    private Integer page;
    private Integer size;
    private Integer pageIndex;


    /**
     * 查询时间类型：0=更新时间、1=创建时间、2=结算时间
     */
    private Integer timetype;
    private Long starttime;
    private Long endtime;
    private String[] pids;

    private String pidStr;

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public Integer getTimetype() {
        return timetype;
    }

    public void setTimetype(Integer timetype) {
        this.timetype = timetype;
    }

    public Long getStarttime() {
        return starttime;
    }

    public void setStarttime(Long starttime) {
        this.starttime = starttime;
    }

    public Long getEndtime() {
        return endtime;
    }

    public void setEndtime(Long endtime) {
        this.endtime = endtime;
    }

    public String[] getPids() {
        return pids;
    }

    public void setPids(String[] pids) {
        this.pids = pids;
    }

    public Integer getPageIndex() {
        if (page==0){
            page = 1;
        }
        if (size==0){
            size=100;
        }
        return this.size*(page-1);
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }

    public String getPidStr() {
        return pidStr;
    }

    public void setPidStr(String pidStr) {
        this.pidStr = pidStr;
    }
}
